FROM java
MAINTAINER wxg
RUN ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo Asia/Shanghai > /etc/timezone
WORKDIR /app
ADD target/cbh-cloud-eureka-peer-0.0.1-SNAPSHOT.jar app.jar
RUN bash -c 'touch /app/app.jar'
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app/app.jar"]
